//package org.example.kidscode.service;
//
//import org.example.kidscode.entity.Student;
//import java.util.List;
//import java.util.Optional;
//
//public interface StudentService {
//    List<Student> findAll();
//    Optional<Student> findById(String id);
//    Student save(Student student);
//    void deleteById(String id);
//}

package org.example.kidscode.service;

import org.example.kidscode.entity.Student;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Optional;

public interface StudentService {
    List<Student> findAll();
    Optional<Student> findById(String id);
    Student save(Student student);
    void deleteById(String id);

    // ✅ 添加批量导入接口方法
    void importStudentsFromExcel(MultipartFile file) throws Exception;
}
